<?php
$this->pageTitle=Yii::app()->name . ' - About';
$this->breadcrumbs=array(
	'About',
);
//echo Yii::app()->user->getId();

	//echo CHtml::textArea('source',$text, array('rows'=>6, 'cols'=>50)); 
	//echo CHtml::button('Get locations from list',array('onclick'=>'get_locations()',));
	
	Yii::app()->clientScript->registerScriptFile('/pushtower/js/jquery-1.8.2.min.js', CClientScript::POS_HEAD);
	Yii::app()->clientScript->registerScriptFile('https://maps.google.com/maps/api/js?sensor=false', CClientScript::POS_HEAD);
	
	Yii::app()->clientScript->registerScriptFile('/pushtower/js/geocode.js', CClientScript::POS_HEAD);  

?>
<div id="">Enter addresses from csv file:</div>
<div><input type="file" id="f"/></div>
<div id="">Output data</div>
<div ><textarea id="output" type="text" cols="50" rows="6"></textarea></div>
<div id="">Addresses with errors</div>
<div ><textarea id="error" type="text" cols="50" rows="6"></textarea></div>
<div id="i"></div>

<form method="post" action="/appcamel/index.php?r=tpLocation/create" id="tplocation-form" hidden="true">
	

	
	<div class="row">
		<label class="required" for="TPLocation_name">Name <span class="required">*</span></label>		<textarea id="TPLocation_name" name="TPLocation[name]" cols="50" rows="6"></textarea>			</div>

	<div class="row">
		<label class="required" for="TPLocation_address">Address <span class="required">*</span></label>		<textarea id="TPLocation_address" name="TPLocation[address]" cols="50" rows="6"></textarea>			</div>

	<div class="row">
		<label for="TPLocation_telephone_land">Telephone Land</label>		<textarea id="TPLocation_telephone_land" name="TPLocation[telephone_land]" cols="50" rows="6"></textarea>			</div>

	<div class="row">
		<label for="TPLocation_telephone_mob1">Telephone Mob1</label>		<textarea id="TPLocation_telephone_mob1" name="TPLocation[telephone_mob1]" cols="50" rows="6"></textarea>			</div>

	<div class="row">
		<label for="TPLocation_telephone_mob2">Telephone Mob2</label>		<textarea id="TPLocation_telephone_mob2" name="TPLocation[telephone_mob2]" cols="50" rows="6"></textarea>			</div>
	
		
	<div class="row">
		<label for="TPLocation_email">Email</label>		<textarea id="TPLocation_email" name="TPLocation[email]" cols="50" rows="6"></textarea>			</div>

	<div class="row">
		<label for="TPLocation_telephone_mob2">Location</label>		<textarea id="TPLocation_location" name="TPLocation[location]" cols="50" rows="6"></textarea>			</div>
	

</form>

